<?
$i = 0;
while (list ($k, $v) = each($this->params['values']))
{
	$i++;
?><div>
	<input id="<?=$this->fieldId.$i;?>" type="checkbox" class="inp_checkbox" name="<?=$this->fieldName;?>[]" value="<?=htmlspecialchars($k);?>" <?=(in_array($k, $this->data) ? ' checked' : '');?>>
	<label for="<?=$this->fieldId.$i;?>"><?=Mozg_Lang::_($v);?></label>
</div><?
}
?>
<input type="hidden" name="<?=$this->fieldName;?>[]" value="">